home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr22 / byte24.zip / BENCHDEF.H < prev    next >
Text File  |  1990-05-11  |  2KB  |  80 lines

  1. /* header file for byte benchmarks
  2. ** BYTE Magazine, Spring 1990.
  3. **
  4. ** benchmark constants are defined here
  5. ** include when compiling benchcod.c and benchfac.c
  6. */
  7.  
  8. /* real benchmark constants */
  9.  
  10. /* Defines */
  11. #define SIEVESIZE 8190        /* Size of the sieve array */
  12. #define SORTSIZE 1024        /* Size of sort array */
  13. #define NKTOMOVE 50        /* K bytes to move in string move */
  14. #define NIOPS 8192        /* # of integer operations */
  15. #define NTXCHARS 8192        /* # of chars per text benchmark */
  16. #define NSCCHARS 1024        /* # of chars per scroll benchmark */
  17. #define NUMCIRC 9        /* Number of circles to draw */
  18. #define HDSEEKS 1000        /* Hard disk seeks */
  19. #define HDTHITERS 1000        /* Hard disk throughput iterations */
  20. #define FFITERS 8192        /* 4-bangs per loop */
  21. #define NCOEFFS 10        /* Fourier coefficients */
  22.  
  23. /* constants */
  24. #define TRUE        1
  25. #define YES        1
  26. #define NO        0
  27.  
  28. #define UPARROW        72        /* keys*/
  29. #define DOWNARROW    80
  30. #define RIGHTARROW    77
  31. #define LEFTARROW    75
  32. #define CTRLRA        116
  33. #define CTRLLA        115
  34. #define TAB        9
  35. #define ENTER        13
  36. #define ESC        27
  37. #define PGUP        73
  38. #define PGDOWN        81
  39. #define CTRLW        23
  40. #define CTRLS        19
  41. #define CTRLD        4
  42. #define STAR        42
  43. #define INS        82
  44. #define BS        8
  45. #define DEL        83
  46. #define CR        13
  47. #define LF        10
  48.  
  49. /* help index structure */
  50. struct help_handle {
  51.     char *arryptr;
  52.     unsigned int filehandle;
  53.     unsigned int chapter_offsets[50];
  54.     };
  55.  
  56. /* config structure */
  57. struct mcfig {
  58.     char machine_name[15];
  59.     unsigned int graphics_type;
  60.     unsigned int proc_type;
  61.     unsigned int fpu_type;
  62.     unsigned int MHz;
  63.     unsigned int num_hard;
  64.     int dosnowplow;
  65.     };
  66.  
  67. /* graphics types for structure */
  68.  
  69. #define    MDA    6
  70. #define HERC    5
  71. #define EGAM    4
  72. #define CGA    3
  73. #define    EGAC    2
  74. #define VGA    1
  75.  
  76. /* timer protypes for everybody */
  77. extern void start_timer(void);            /* start timer */
  78. extern void stop_timer(unsigned int *);        /* stop timer */
  79.  
  80.